<div class="panel panel-default panel-intro">
    <style>
        body,.content{
            width: auto;
        }
        .table th, .table td {
            text-align: center;
            vertical-align: middle!important;
        }
        tr > td {
            border: 1px solid #000;
        }
    </style>

    <div class="panel-heading">
        <ul class="nav nav-tabs"></ul>
    </div>
    <div class="fixed-table-body">
        <div class="fixed-table-loading" style="top: 42px; display: none;"></div>
        <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
            <thead>
            <tr>
                <th>序号</th>
                <th>区域</th>
                <th>市场</th>
                <th>市场总积分</th>
                <th>图书经理积分</th>
                <th>合计总积分</th>
                <th>分公司数量</th>
                <th>大区积分统计</th>
                <th>大区周平均积分</th>
                <th>积分奖励</th>
                <th>奖励后积分</th>
            </tr>


            </thead>
            <tbody data-listidx="0">
            <?php foreach($merge as $k=>$v){ ?>
                <tr>
                    <td>{$k+1}</td>
                    <td>{$v['name']}</td>
                    <td><?php echo str_replace('分公司','',$v["gongsi"]);?></td>
                    <td>{$v['jifen']}</td>

                    <td>{$v['tushu']}</td>


                    <td>{$v['tushu']+$v['jifen']}</td>
                    <?php if(isset($v['row'])){?>
                    <td rowspan="<?php echo $v['row']?>"><?php echo $v['val'];?></td>
                    <td rowspan="<?php echo $v['row']?>"><?php echo $v['heji'];?></td>
                    <td rowspan="<?php echo $v['row']?>"><?php echo $v['pinjun'];?></td>

                    <?php }?>

                    <td>{$v['jiangli']}</td>
                    <td>{$v['tushu']+$v['jiangli']+$v['jifen']}</td>
                </tr>
            <?php }?>
            <tr>
                <td>&nbsp;</td>
                <td>合计</td>
                <td>&nbsp;</td>
                <td>{$total}</td>
                <td>{$total1}</td>
                <td>{$total2}</td>
                <td>{$total3}</td>
                <td>{$total4}</td>
                <td>{$total5}</td>
                <td>{$total6}</td>
                <td>{$total7}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>